<div class="layui-row">
    <div class="layui-col-md12">
        <div class="layui-carousel" id="slide">
            <div carousel-item>
                <div>
                    @if (isset($setting->slide1) && $setting->slide1)
                    <a href="{{$slide_url1 ?? '/'}}" title="轮播图1"><img src="{{$setting->slide1}}" alt="轮播图1" style="width: 100%;height: 280px;"></a>
                    @else
                    轮播图1
                    @endif
                </div>
                <div>
                    @if (isset($setting->slide2) && $setting->slide2)
                    <a href="{{$slide_url2 ?? '/'}}" title="轮播图2"><img src="{{$setting->slide2}}" alt="轮播图2" style="width: 100%;height: 280px;"></a>
                    @else
                    轮播图2
                    @endif
                </div>
                <div>
                    @if (isset($setting->slide3) && $setting->slide3)
                    <a href="{{$slide_url3 ?? '/'}}" title="轮播图3"><img src="{{$setting->slide3}}" alt="轮播图3" style="width: 100%;height: 280px;"></a>
                    @else
                    轮播图3
                    @endif
                </div>
                <div>
                    @if (isset($setting->slide4) && $setting->slide4)
                    <a href="{{$slide_url4 ?? '/'}}" title="轮播图4"><img src="{{$setting->slide4}}" alt="轮播图4" style="width: 100%;height: 280px;"></a>
                    @else
                    轮播图4
                    @endif
                </div>
                <div>
                    @if (isset($setting->slide5) && $setting->slide5)
                    <a href="{{$slide_url5 ?? '/'}}" title="轮播图5"><img src="{{$setting->slide5}}" alt="轮播图5" style="width: 100%;height: 280px;"></a>
                    @else
                    轮播图5
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
<br />